import 'package:flutter/material.dart';
import 'package:vmall_app/assets/icon_font.dart';
import 'package:vmall_app/pages/cart_page.dart';
import 'package:vmall_app/pages/home_page.dart';
import 'package:vmall_app/pages/message_page.dart';
import 'package:vmall_app/pages/my_page.dart';
import 'package:vmall_app/pages/order_page.dart';

class NavItem {
  final String name;
  final Widget page;
  final Icon icon;
  final Icon fillIcon;
  NavItem(this.name, this.page, this.icon, this.fillIcon);
}

final List<NavItem> listNavItem = [
  NavItem('首页', HomePage(),Icon(Iconfont.home),Icon(Iconfont.home_fill_light)),
  NavItem('消息', MessagePage(),Icon(Iconfont.message_light),Icon(Iconfont.message_fill_light)),
  NavItem('购物车', CartPage(),Icon(Iconfont.cart_light),Icon(Iconfont.cart_fill_light)),
  NavItem('订单', OrderPage(),Icon(Icons.list),Icon(Icons.list)),
  NavItem('我', MyPage(),Icon(Iconfont.my_fill),Icon(Iconfont.my_fill)),
];
